<?php
namespace app\admin\model;

use think\Model;
use think\Db;

class Category extends Model
{
     // 用户列表 
    public function categorylist()
    {
        $list = DB::name('category')->select();
        return $list;
    }
    public function delId($id)
    {
        $del = Category::destroy($id);
        return $del;
    }
}